package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "menu")
public class MenuEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String path;
    private String name;
    private Integer parentId;


    @TableField(exist = false)
    private  MenuMetaEntity meta;
    @TableField(exist = false)
    private List<MenuEntity> children;

}

